package frsf.cidisi.exercise.tp1_ia.search;

import frsf.cidisi.faia.state.EnvironmentState;

/**
 * This class represents the real world state.
 */
public class EstadoAmbiente extends EnvironmentState {
	
	
	
	//TODO: Setup Variables
    private int tpoTranscurrido;
    private int cantidadUpdates;
    private int posicionAgente;
	
    public EstadoAmbiente() {
        
        tpoTranscurrido = 0;
		cantidadUpdates = 0;
		posicionAgente = 0;
        
        this.initState();
    }

    /**
     * This method is used to setup the initial real world.
     */
    @Override
    public void initState() {
    }

    /**
     * String representation of the real world state.
     */
    @Override
    public String toString() {
    	String str = "";
        str=str+"Posicion Agente = "+ this.posicionAgente + " | ";
        str=str+"Tiempo Transcurrido = "+ this.tpoTranscurrido + " | ";
        str=str+"Iteraciones de Act = "+this.cantidadUpdates;
        return str;
        }

	// The following methods are agent-specific:
	
     public int gettpoTranscurrido(){
        return tpoTranscurrido;
     }
     public void settpoTranscurrido(int arg){
        tpoTranscurrido += arg;
     }
     public int getcantidadUpdates(){
        return cantidadUpdates;
     }
     public void setcantidadUpdates(int arg){
        cantidadUpdates += arg;
     }
     public int getposicionAgente(){
        return posicionAgente;
     }
     public void setposicionAgente(int arg){
        posicionAgente = arg;
     }
	

}

